import { Session } from '../utils/storage';

export function useUpload() {
  const action = `${import.meta.env.VITE_API_PREFIX as string}/file/upload`;
  const headers = { Authorization: `Bearer ${Session.get('token')}` };

  return {
    action,
    headers,
  };
}
